package array;

public class Demo {
    public static void main(String[] args) {
        String str1 = "Hello";
        String str2 = "Hello";
        System.out.println(str1 == str2);//true

        String str3 = new String("Hello");
        String str4 = new String("Hello");


        System.out.println(str3 == str4);

        System.out.println("str1 = " + str1);
        System.out.println("str2 = " + str2);
        System.out.println("str3 = " + str3);
    }
}
